package ar.com.ford.it.fullEconomics.struct;

import ar.com.ford.it.fullEconomics.persistence.dto.Ncas012VehicleVw;
import ar.com.ford.it.fullEconomics.persistence.dto.Ncas101CatalogVw;
import ar.com.ford.it.fullEconomics.persistence.dto.Ncas104SfiVw;

public class SFICatalIDStruct {
	
	private String modelyearCodeC;
	private String tmaCodeC;
	private String seqCodeC;
	private String vehicleCodeC;
	private String sfiCodeC;
	
	public String getModelyearCodeC() {
		return this.modelyearCodeC;
	}

	public String getSeqCodeC() {
		return this.seqCodeC;
	}

	public String getTmaCodeC() {
		return this.tmaCodeC;
	}

	public void setModelyearCodeC(String cas101CatalModelyearCodeC) {
		this.modelyearCodeC = cas101CatalModelyearCodeC;
	}

	public void setSeqCodeC(String cas101CatalSeqCodeC) {
		this.seqCodeC = cas101CatalSeqCodeC;
	}

	public void setTmaCodeC(String cas101CatalTmaCodeC) {
		this.tmaCodeC = cas101CatalTmaCodeC;
	}
	
	public String getSFICatalIDSerial() {
		String ret;
		
		ret = this.getVehicleCodeC() +
		      this.getSfiCodeC() + " >> " +
		      this.getModelyearCodeC() + "/" +
		      this.getTmaCodeC() + "/" +
		      this.getSeqCodeC();
		
		return ret;
		    
		
	}
	
	public String getVehicleCodeC() {
		return this.vehicleCodeC;
	}

    public String getSfiCodeC() {
    	return this.sfiCodeC;
    }
    
    public Ncas104SfiVw getNcas104SfiVw() {
    	Ncas104SfiVw sfi = new Ncas104SfiVw();
    	
    	Ncas012VehicleVw vehicle = new Ncas012VehicleVw();
    	
    	vehicle.setCas012VehicleCodeC(vehicleCodeC);
    	sfi.setCas104SfiCodeC(this.sfiCodeC);
    	sfi.setCas104VehicleCodeC(vehicle);

    	return sfi;
    }
    
    public Ncas101CatalogVw getNcas101CatalogVw() {
    	Ncas101CatalogVw catalog = new Ncas101CatalogVw(); 
    	
        Ncas012VehicleVw vehicle = new Ncas012VehicleVw();
    	
    	vehicle.setCas012VehicleCodeC(this.vehicleCodeC);
    	
    	catalog.setCas101CatalModelyearCodeC(this.modelyearCodeC);
    	catalog.setCas101CatalTmaCodeC(this.tmaCodeC);
    	catalog.setCas101CatalSeqCodeC(this.seqCodeC);
    	catalog.setCas101VehicleCodeC(vehicle);
    	
    	return catalog;
    	
    }

    public void setNcas104SfiVw(Ncas104SfiVw sfi) {
    	
    	this.sfiCodeC = sfi.getCas104SfiCodeC().toString();
    	this.vehicleCodeC = sfi.getCas104VehicleCodeC().getCas012VehicleCodeC().toString();

    }
    
    public void setNcas101CatalogVw(Ncas101CatalogVw catalog) {
    	    	
        this.modelyearCodeC = catalog.getCas101CatalModelyearCodeC().toString();
    	this.tmaCodeC = catalog.getCas101CatalTmaCodeC().toString();
    	this.seqCodeC = catalog.getCas101CatalSeqCodeC().toString();
    	this.vehicleCodeC = catalog.getCas101VehicleCodeC().getCas012VehicleCodeC().toString();
    	
    }

    
}
